//公共接口文件
import request from '@/plugins/axios/request';
const baseURL = process.env.VUE_APP_BASE_API

// [公共分类]上传
export function uploadFile(data) {
  return request({
    url: `${baseURL}/common/uploadFile`,
    method: 'post',
    data: data,
    // isShowMessage: true
  })
}
// [公共分类]上传删除
export function deleteFile(data) {
  return request({
    url: `${baseURL}/common/deleteFile`,
    method: 'post',
    data: data
  })
}
// [公共分类]获取所以专家
export function getExpertList(data) {
  return request({
    url: `${baseURL}/tech-talents/list`,
    method: 'post',
    data: data
  })
}

// [公共分类]下拉字典(单个获取)
export function getSelect(params) {
  return request({
    url: `${baseURL}/tech-dict/selectValuesByTypeAndTable`,
    method: "get",
    params,
  });
}

// [公共分类]下拉字典(批量获取)
export function getAllSelect(params) {
  return request({
    url: `${baseURL}/tech-dict/select`,
    method: "get",
    params,
  });
}
// 供应商-下拉
export function getSimpleList(data) {
  return request({
    url: `${baseURL}/tech-supplier/getSimpleList`,
    method: "get",
    params: data,
  });
}

// 上次新增的编号
export function getLastNumber(data) {
  return request({
    url: `${baseURL}/tech-project/last-add-number`,
    method: 'get',
    params: data,
  })
}

// word转pdf
export function getWord2Pdf(data) {
  return request({
    url: `${baseURL}/tech-file/word2Pdf`,
    method: 'get',
    params: data,
  })
}

